package com.spring.shops.service;

import com.spring.shops.model.dto.PickAddrDTO;
import com.spring.shops.model.entity.TzPickAddr;
import com.spring.shops.model.result.IPageIndexImg;
import com.spring.shops.model.result.ServerResponseEntityVoid;

import java.util.List;

public interface PickAddrService {
    /**
     * 新增自提点
     * @param tzPickAddr
     */
    boolean save(TzPickAddr tzPickAddr);
    /**
     * 分页查询
     * @param dto
     */
    ServerResponseEntityVoid<IPageIndexImg<TzPickAddr>> page(PickAddrDTO dto);
    /**
     * 批量删除数据
     * @param integers
     * @return
     */
    boolean deleteByIds(List<Integer> integers);
    /**
     * 根据id获取数据
     * @param id
     * @return
     */
    ServerResponseEntityVoid<TzPickAddr> getById(Integer id);
    /**
     * 更新数据
     * @param tzPickAddr
     * @return
     */
    boolean update(TzPickAddr tzPickAddr);
}
